//
//  Order.m
//  fGeekApp
//
//  Created by Administrator on 15/3/7.
//  Copyright (c) 2015年 cwx. All rights reserved.
//

#import "Order.h"

@implementation Order

-(Order *)initOrderInstanceByDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
       
        self.orderID = [[dict valueForKey:@"order_id"] integerValue];
        self.userID = [[dict valueForKey:@"user_id"] integerValue];
        self.orderNumber = [[dict valueForKey:@"order_number"] integerValue];
        self.orderAddTime = [[dict valueForKey:@"order_addTime"] integerValue];
        self.orderStatus = [[dict valueForKey:@"order_status"] integerValue];

    }
    return self;
}

+(Order *)getOrderInstanceByDict:(NSDictionary *)dict{
    return [[self alloc]initOrderInstanceByDict:dict];
}

@end
